Skip to content

Commit

Permalink
Merge pull request #527 from hplato/ia7
Browse files Browse the repository at this point in the history
Ia7
  • Loading branch information
hollie committed Jul 27, 2015
2 parents c1518c6 + 7091310 commit 49056bc
Show file tree
Hide file tree
Showing 267 changed files with 929 additions and 58 deletions.
16 changes: 13 additions & 3 deletions data/web/ia7_config.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
{
{
"prefs" : {
"header_button" : "yes",
"state_log_show" : "yes",
"state_log_entries" : "4",
"always_double_buttons" : "no"
"always_double_buttons" : "yes",
"fp_icon_size" : "32",
"fp_state_popovers" : "yes",
"substate_percentages" : "20",
"disable_current_state" : "yes"
},
"objects" : {
"example_object" : {
"disable_current_state" : "no"
}
}
}

}
66 changes: 66 additions & 0 deletions lib/FPCamera_Item.pm
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@

package FPCamera_Item;

use warnings;

@FPCamera_Item::ISA = ('Generic_Item');
# $backyard_cam = FPCamera_Item;
# $backyard_cam -> set_img("http://127.0.0.1/image.cgi");
# $backyard_cam -> set_link("http://zm/monitors");

sub new {
my ($class) = @_;
my $self = {};
bless $self, $class;
# States active/inactive?
return $self;
}

sub set_img {
my ($self, $addr)= @_;
$self->{img} = $addr;
}

sub get_img {
my ($self) = @_;
my $img = "";
$img = $self->{img} if (defined $self->{img});
return $img;
}

sub set_video {
my ($self, $addr)= @_;
$self->{video} = $addr;
}

sub get_video {
my ($self) = @_;
my $video = "";
$video = $self->{video} if (defined $self->{video});
return $video;
}

sub set_thumbnail {
my ($self, $addr)= @_;
$self->{tn} = $addr;
}

sub get_thumbnail {
my ($self) = @_;
my $tn = "";
$tn = $self->{tn} if (defined $self->{tn});
return $tn;
}

sub set_link {
# just return a link to a source. Used by IA7 floorplan interface if the image is clicked
my ($self, $addr)= @_;
$self->{link} = $addr;
}

sub get_link {
my ($self) = @_;
my $link = "";
$link = $self->{link} if (defined $self->{link});
return $link;
}
31 changes: 31 additions & 0 deletions lib/Generic_Item.pm
Original file line number Diff line number Diff line change
Expand Up @@ -957,6 +957,37 @@ sub get_fp_icons {
}
}

=item C<set_fp_icons_set(name)>
Sets the icons group used by the IA7 floorplan web interface. The name contains the
group name of icons that can be found in /web/ia7/graphics.
Can only be run at startup or reload.
=cut

sub set_fp_icon_set {
return unless $main::Reload;
my ($self, $icons) = @_;
$$self{fp_icon_set}=$icons;
}

=item C<get_fp_icons()>
Returns the name of the icon set used by the floorplan IA7 web interface that were set
by C<set_fp_icon_set>.
=cut

sub get_fp_icon_set {
my ($self) = @_;
if ($$self{fp_icon_set}) {
return $$self{fp_icon_set};
} else {
return undef;
}
}


=item C<set_states(states)>
Sets valid states to states, which is a list or array. Can only be run at startup or reload. TODO
Expand Down
2 changes: 1 addition & 1 deletion lib/json_server.pl
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ sub json_object_detail {
my %json_complete_object;
my @f = qw( category filename measurement rf_id set_by members
state states state_log type label sort_order groups hidden parents
idle_time text html seconds_remaining fp_location fp_icons level);
idle_time text html seconds_remaining fp_location fp_icons fp_icon_set img link level);

# Build list of fields based on those requested.
foreach my $f ( sort @f ) {
Expand Down
Binary file added web/ia7/fonts/fontawesome-webfont.eot
Binary file not shown.
565 changes: 565 additions & 0 deletions web/ia7/fonts/fontawesome-webfont.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added web/ia7/fonts/fontawesome-webfont.woff2
Binary file not shown.
Binary file removed web/ia7/graphics/fp-light-dim.png
Binary file not shown.
Binary file removed web/ia7/graphics/fp-light-off.png
Binary file not shown.
Binary file removed web/ia7/graphics/fp-light-on.png
Binary file not shown.
Binary file removed web/ia7/graphics/fp-motion-motion.png
Binary file not shown.
Binary file removed web/ia7/graphics/fp-motion-still.png
Binary file not shown.
Binary file removed web/ia7/graphics/fp-motion-unknown.png
Binary file not shown.
Binary file removed web/ia7/graphics/fp-unknown.png
Binary file not shown.
Binary file added web/ia7/graphics/fp_appliance_danger_128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added web/ia7/graphics/fp_appliance_danger_32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added web/ia7/graphics/fp_appliance_danger_48.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added web/ia7/graphics/fp_appliance_danger_64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added web/ia7/graphics/fp_appliance_default_128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added web/ia7/graphics/fp_appliance_default_32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added web/ia7/graphics/fp_appliance_default_48.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added web/ia7/graphics/fp_appliance_default_64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added web/ia7/graphics/fp_appliance_info_128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added web/ia7/graphics/fp_appliance_info_32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added web/ia7/graphics/fp_appliance_info_48.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added web/ia7/graphics/fp_appliance_info_64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added web/ia7/graphics/fp_appliance_success_128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added web/ia7/graphics/fp_appliance_success_32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added web/ia7/graphics/fp_appliance_success_48.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added web/ia7/graphics/fp_appliance_success_64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added web/ia7/graphics/fp_appliance_warning_128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added web/ia7/graphics/fp_appliance_warning_32.png
Binary file added web/ia7/graphics/fp_appliance_warning_48.png
Binary file added web/ia7/graphics/fp_appliance_warning_64.png
Binary file added web/ia7/graphics/fp_blinds_danger_128.png
Binary file added web/ia7/graphics/fp_blinds_danger_32.png
Binary file added web/ia7/graphics/fp_blinds_danger_48.png
Binary file added web/ia7/graphics/fp_blinds_danger_64.png
Binary file added web/ia7/graphics/fp_blinds_default_128.png
Binary file added web/ia7/graphics/fp_blinds_default_32.png
Binary file added web/ia7/graphics/fp_blinds_default_48.png
Binary file added web/ia7/graphics/fp_blinds_default_64.png
Binary file added web/ia7/graphics/fp_blinds_info_128.png
Binary file added web/ia7/graphics/fp_blinds_info_32.png
Binary file added web/ia7/graphics/fp_blinds_info_48.png
Binary file added web/ia7/graphics/fp_blinds_info_64.png
Binary file added web/ia7/graphics/fp_blinds_success_128.png
Binary file added web/ia7/graphics/fp_blinds_success_32.png
Binary file added web/ia7/graphics/fp_blinds_success_48.png
Binary file added web/ia7/graphics/fp_blinds_success_64.png
Binary file added web/ia7/graphics/fp_blinds_warning_128.png
Binary file added web/ia7/graphics/fp_blinds_warning_32.png
Binary file added web/ia7/graphics/fp_blinds_warning_48.png
Binary file added web/ia7/graphics/fp_blinds_warning_64.png
Binary file added web/ia7/graphics/fp_camera_danger_128.png
Binary file added web/ia7/graphics/fp_camera_danger_32.png
Binary file added web/ia7/graphics/fp_camera_danger_48.png
Binary file added web/ia7/graphics/fp_camera_danger_64.png
Binary file added web/ia7/graphics/fp_camera_default_128.png
Binary file added web/ia7/graphics/fp_camera_default_32.png
Binary file added web/ia7/graphics/fp_camera_default_48.png
Binary file added web/ia7/graphics/fp_camera_default_64.png
Binary file added web/ia7/graphics/fp_camera_info_128.png
Binary file added web/ia7/graphics/fp_camera_info_32.png
Binary file added web/ia7/graphics/fp_camera_info_48.png
Binary file added web/ia7/graphics/fp_camera_info_64.png
Binary file added web/ia7/graphics/fp_camera_success_128.png
Binary file added web/ia7/graphics/fp_camera_success_32.png
Binary file added web/ia7/graphics/fp_camera_success_48.png
Binary file added web/ia7/graphics/fp_camera_success_64.png
Binary file added web/ia7/graphics/fp_camera_warning_128.png
Binary file added web/ia7/graphics/fp_camera_warning_32.png
Binary file added web/ia7/graphics/fp_camera_warning_48.png
Binary file added web/ia7/graphics/fp_camera_warning_64.png
Binary file added web/ia7/graphics/fp_door2_danger_128.png
Binary file added web/ia7/graphics/fp_door2_danger_32.png
Binary file added web/ia7/graphics/fp_door2_danger_48.png
Binary file added web/ia7/graphics/fp_door2_danger_64.png
Binary file added web/ia7/graphics/fp_door2_default_128.png
Binary file added web/ia7/graphics/fp_door2_default_32.png
Binary file added web/ia7/graphics/fp_door2_default_48.png
Binary file added web/ia7/graphics/fp_door2_default_64.png
Binary file added web/ia7/graphics/fp_door2_info_128.png
Binary file added web/ia7/graphics/fp_door2_info_32.png
Binary file added web/ia7/graphics/fp_door2_info_48.png
Binary file added web/ia7/graphics/fp_door2_info_64.png
Binary file added web/ia7/graphics/fp_door2_success_128.png
Binary file added web/ia7/graphics/fp_door2_success_32.png
Binary file added web/ia7/graphics/fp_door2_success_48.png
Binary file added web/ia7/graphics/fp_door2_success_64.png
Binary file added web/ia7/graphics/fp_door2_warning_128.png
Binary file added web/ia7/graphics/fp_door2_warning_32.png
Binary file added web/ia7/graphics/fp_door2_warning_48.png
Binary file added web/ia7/graphics/fp_door2_warning_64.png
Binary file added web/ia7/graphics/fp_door3_danger_128.png
Binary file added web/ia7/graphics/fp_door3_danger_32.png
Binary file added web/ia7/graphics/fp_door3_danger_48.png
Binary file added web/ia7/graphics/fp_door3_danger_64.png
Binary file added web/ia7/graphics/fp_door3_default_128.png
Binary file added web/ia7/graphics/fp_door3_default_32.png
Binary file added web/ia7/graphics/fp_door3_default_48.png
Binary file added web/ia7/graphics/fp_door3_default_64.png
Binary file added web/ia7/graphics/fp_door3_info_128.png
Binary file added web/ia7/graphics/fp_door3_info_32.png
Binary file added web/ia7/graphics/fp_door3_info_48.png
Binary file added web/ia7/graphics/fp_door3_info_64.png
Binary file added web/ia7/graphics/fp_door3_success_128.png
Binary file added web/ia7/graphics/fp_door3_success_32.png
Binary file added web/ia7/graphics/fp_door3_success_48.png
Binary file added web/ia7/graphics/fp_door3_success_64.png
Binary file added web/ia7/graphics/fp_door3_warning_128.png
Binary file added web/ia7/graphics/fp_door3_warning_32.png
Binary file added web/ia7/graphics/fp_door3_warning_48.png
Binary file added web/ia7/graphics/fp_door3_warning_64.png
Binary file added web/ia7/graphics/fp_door_danger_128.png
Binary file added web/ia7/graphics/fp_door_danger_32.png
Binary file added web/ia7/graphics/fp_door_danger_48.png
Binary file added web/ia7/graphics/fp_door_danger_64.png
Binary file added web/ia7/graphics/fp_door_default_128.png
Binary file added web/ia7/graphics/fp_door_default_32.png
Binary file added web/ia7/graphics/fp_door_default_48.png
Binary file added web/ia7/graphics/fp_door_default_64.png
Binary file added web/ia7/graphics/fp_door_info_128.png
Binary file added web/ia7/graphics/fp_door_info_32.png
Binary file added web/ia7/graphics/fp_door_info_48.png
Binary file added web/ia7/graphics/fp_door_info_64.png
Binary file added web/ia7/graphics/fp_door_success_128.png
Binary file added web/ia7/graphics/fp_door_success_32.png
Binary file added web/ia7/graphics/fp_door_success_48.png
Binary file added web/ia7/graphics/fp_door_success_64.png
Binary file added web/ia7/graphics/fp_door_warning_128.png
Binary file added web/ia7/graphics/fp_door_warning_32.png
Binary file added web/ia7/graphics/fp_door_warning_48.png
Binary file added web/ia7/graphics/fp_door_warning_64.png
Binary file added web/ia7/graphics/fp_drop_danger_128.png
Binary file added web/ia7/graphics/fp_drop_danger_32.png
Binary file added web/ia7/graphics/fp_drop_danger_48.png
Binary file added web/ia7/graphics/fp_drop_danger_64.png
Binary file added web/ia7/graphics/fp_drop_default_128.png
Binary file added web/ia7/graphics/fp_drop_default_32.png
Binary file added web/ia7/graphics/fp_drop_default_48.png
Binary file added web/ia7/graphics/fp_drop_default_64.png
Binary file added web/ia7/graphics/fp_drop_info_128.png
Binary file added web/ia7/graphics/fp_drop_info_32.png
Binary file added web/ia7/graphics/fp_drop_info_48.png
Binary file added web/ia7/graphics/fp_drop_info_64.png
Binary file added web/ia7/graphics/fp_drop_success_128.png
Binary file added web/ia7/graphics/fp_drop_success_32.png
Binary file added web/ia7/graphics/fp_drop_success_48.png
Binary file added web/ia7/graphics/fp_drop_success_64.png
Binary file added web/ia7/graphics/fp_drop_warning_128.png
Binary file added web/ia7/graphics/fp_drop_warning_32.png
Binary file added web/ia7/graphics/fp_drop_warning_48.png
Binary file added web/ia7/graphics/fp_drop_warning_64.png
Binary file added web/ia7/graphics/fp_fan_danger_128.png
Binary file added web/ia7/graphics/fp_fan_danger_32.png
Binary file added web/ia7/graphics/fp_fan_danger_48.png
Binary file added web/ia7/graphics/fp_fan_danger_64.png
Binary file added web/ia7/graphics/fp_fan_default_128.png
Binary file added web/ia7/graphics/fp_fan_default_32.png
Binary file added web/ia7/graphics/fp_fan_default_48.png
Binary file added web/ia7/graphics/fp_fan_default_64.png
Binary file added web/ia7/graphics/fp_fan_info_128.png
Binary file added web/ia7/graphics/fp_fan_info_32.png
Binary file added web/ia7/graphics/fp_fan_info_48.png
Binary file added web/ia7/graphics/fp_fan_info_64.png
Binary file added web/ia7/graphics/fp_fan_success_128.png
Binary file added web/ia7/graphics/fp_fan_success_32.png
Binary file added web/ia7/graphics/fp_fan_success_48.png
Binary file added web/ia7/graphics/fp_fan_success_64.png
Binary file added web/ia7/graphics/fp_fan_warning_128.png
Binary file added web/ia7/graphics/fp_fan_warning_32.png
Binary file added web/ia7/graphics/fp_fan_warning_48.png
Binary file added web/ia7/graphics/fp_fan_warning_64.png
Binary file added web/ia7/graphics/fp_light_danger_128.png
Binary file added web/ia7/graphics/fp_light_danger_32.png
Binary file added web/ia7/graphics/fp_light_danger_48.png
Binary file added web/ia7/graphics/fp_light_danger_64.png
Binary file added web/ia7/graphics/fp_light_default_128.png
Binary file added web/ia7/graphics/fp_light_default_32.png
Binary file added web/ia7/graphics/fp_light_default_48.png
Binary file added web/ia7/graphics/fp_light_default_64.png
Binary file added web/ia7/graphics/fp_light_info_128.png
Binary file added web/ia7/graphics/fp_light_info_32.png
Binary file added web/ia7/graphics/fp_light_info_48.png
Binary file added web/ia7/graphics/fp_light_info_64.png
Binary file added web/ia7/graphics/fp_light_success_128.png
Binary file added web/ia7/graphics/fp_light_success_32.png
Binary file added web/ia7/graphics/fp_light_success_48.png
Binary file added web/ia7/graphics/fp_light_success_64.png
Binary file added web/ia7/graphics/fp_light_warning_128.png
Binary file added web/ia7/graphics/fp_light_warning_32.png
Binary file added web/ia7/graphics/fp_light_warning_48.png
Binary file added web/ia7/graphics/fp_light_warning_64.png
Binary file added web/ia7/graphics/fp_motion_danger_128.png
Binary file added web/ia7/graphics/fp_motion_danger_32.png
Binary file added web/ia7/graphics/fp_motion_danger_48.png
Binary file added web/ia7/graphics/fp_motion_danger_64.png
Binary file added web/ia7/graphics/fp_motion_default_128.png
Binary file added web/ia7/graphics/fp_motion_default_32.png
Binary file added web/ia7/graphics/fp_motion_default_48.png
Binary file added web/ia7/graphics/fp_motion_default_64.png
Binary file added web/ia7/graphics/fp_motion_info_128.png
Binary file added web/ia7/graphics/fp_motion_info_32.png
Binary file added web/ia7/graphics/fp_motion_info_48.png
Binary file added web/ia7/graphics/fp_motion_info_64.png
Binary file added web/ia7/graphics/fp_motion_success_128.png
Binary file added web/ia7/graphics/fp_motion_success_32.png
Binary file added web/ia7/graphics/fp_motion_success_48.png
Binary file added web/ia7/graphics/fp_motion_success_64.png
Binary file added web/ia7/graphics/fp_motion_warning_128.png
Binary file added web/ia7/graphics/fp_motion_warning_32.png
Binary file added web/ia7/graphics/fp_motion_warning_48.png
Binary file added web/ia7/graphics/fp_motion_warning_64.png
Binary file added web/ia7/graphics/fp_unknown_danger_128.png
Binary file added web/ia7/graphics/fp_unknown_danger_32.png
Binary file added web/ia7/graphics/fp_unknown_danger_48.png
Binary file added web/ia7/graphics/fp_unknown_danger_64.png
Binary file added web/ia7/graphics/fp_unknown_default_128.png
Binary file added web/ia7/graphics/fp_unknown_default_32.png
Binary file added web/ia7/graphics/fp_unknown_default_48.png
Binary file added web/ia7/graphics/fp_unknown_default_64.png
Binary file added web/ia7/graphics/fp_unknown_info_128.png
Binary file added web/ia7/graphics/fp_unknown_info_32.png
Binary file added web/ia7/graphics/fp_unknown_info_48.png
Binary file added web/ia7/graphics/fp_unknown_info_64.png
Binary file added web/ia7/graphics/fp_unknown_success_128.png
Binary file added web/ia7/graphics/fp_unknown_success_32.png
Binary file added web/ia7/graphics/fp_unknown_success_48.png
Binary file added web/ia7/graphics/fp_unknown_success_64.png
Binary file added web/ia7/graphics/fp_unknown_warning_128.png
Binary file added web/ia7/graphics/fp_unknown_warning_32.png
Binary file added web/ia7/graphics/fp_unknown_warning_48.png
Binary file added web/ia7/graphics/fp_unknown_warning_64.png
Binary file added web/ia7/graphics/fp_window_danger_128.png
Binary file added web/ia7/graphics/fp_window_danger_32.png
Binary file added web/ia7/graphics/fp_window_danger_48.png
Binary file added web/ia7/graphics/fp_window_danger_64.png
Binary file added web/ia7/graphics/fp_window_default_128.png
Binary file added web/ia7/graphics/fp_window_default_32.png
Binary file added web/ia7/graphics/fp_window_default_48.png
Binary file added web/ia7/graphics/fp_window_default_64.png
Binary file added web/ia7/graphics/fp_window_info_128.png
Binary file added web/ia7/graphics/fp_window_info_32.png
Binary file added web/ia7/graphics/fp_window_info_48.png
Binary file added web/ia7/graphics/fp_window_info_64.png
Binary file added web/ia7/graphics/fp_window_success_128.png
Binary file added web/ia7/graphics/fp_window_success_32.png
Binary file added web/ia7/graphics/fp_window_success_48.png
Binary file added web/ia7/graphics/fp_window_success_64.png
Binary file added web/ia7/graphics/fp_window_warning_128.png
Binary file added web/ia7/graphics/fp_window_warning_32.png
Binary file added web/ia7/graphics/fp_window_warning_48.png
Binary file added web/ia7/graphics/fp_window_warning_64.png
2 changes: 1 addition & 1 deletion web/ia7/house/main.shtml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
<div class='col-sm-12 col-sm-offset-0 col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2'>
<div class='col-sm-12'>
<p class="text-muted"><small> MisterHouse was created by Bruce Winter. Ron Klinkien developed the v2.3 web interface. Kevin Robert Keegan
developed the v4 IA7 web interface, updates by H.Plato. IA7 v1.0.300</small></p>
developed the v4 web interface, updates by H.Plato. IA7 v1.0.700 Font Awesome by Dave Gandy - http://fontawesome.io</small></p>
</div>
</div>
</div>
5 changes: 5 additions & 0 deletions web/ia7/include/bootstrap-theme.3.3.5.min.css

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions web/ia7/include/bootstrap.3.3.5.min.css

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions web/ia7/include/bootstrap.3.3.5.min.js

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions web/ia7/include/font-awesome.4.3.0.min.css

Large diffs are not rendered by default.

Loading

0 comments on commit 49056bc

Please sign in to comment.