www.homeseer.com    
 

Go Back   HomeSeer Message Board > HomeSeer Products & Services > HomeSeer Software > HS3 / HS3PRO > HS3 Virtual Devices

HS3 Virtual Devices Discussions related to the creation of HS3 Virtual Devices and Related Events

Reply
 
Thread Tools Display Modes
  #1  
Old April 21st, 2017, 07:48 AM
tccug221 tccug221 is offline
Seer
 
Join Date: Sep 2016
Location: Florida
Posts: 23
Virtual device Value set with GET

I have a raspberry pi with some sensors on it. The Sensors will return data with a web GET. For example, if you request http://10.10.10.10:1200 a value from one of the sensors is returned. Is there a way to get this value and assign it to a virtual device?
Reply With Quote
  #2  
Old April 21st, 2017, 10:42 AM
mrhappy mrhappy is offline
OverSeer
 
Join Date: Nov 2007
Location: W.Mids, UK
Posts: 6,848
Yes although it will depend on what the data is returned by, is it plain html, text, XML, JSON etc. If it is very simple text you might be able to get by with a single line scripting call, if not then it's likely to need a full script (which would be a couple of lines) you would run in a recurring event.

Probably best if you post the contents of the web page so it can be understand how it is coming back to you.
Reply With Quote
  #3  
Old April 21st, 2017, 11:11 AM
tccug221 tccug221 is offline
Seer
 
Join Date: Sep 2016
Location: Florida
Posts: 23
Thanks

Yes, its a simple value, for example, a temperature or humidity value. 67 or 100 say. What would be the single line script?
Reply With Quote
  #4  
Old April 21st, 2017, 11:17 AM
epimetheus epimetheus is offline
Seer Plus
 
Join Date: Sep 2015
Location: League City, TX
Posts: 88
You could also go about it another way. Have the pi control the HS virtual device via a JSON call. I'm using Node-Red on a pi3 to send various sensor data to HS3 with this method.
Reply With Quote
  #5  
Old April 21st, 2017, 11:22 AM
tccug221 tccug221 is offline
Seer
 
Join Date: Sep 2016
Location: Florida
Posts: 23
So you are using some sort of timer and sending data to HS at intervals?
Reply With Quote
  #6  
Old April 21st, 2017, 06:51 PM
epimetheus epimetheus is offline
Seer Plus
 
Join Date: Sep 2015
Location: League City, TX
Posts: 88
Node Red allows you to set interval triggers to perform actions. I'm also using it to parse http info from my CAO Gadgets Wireless Tag Manager (Tag Manager > RPI3 w/Node Red > HS3).

Sent from my Pixel XL using Tapatalk
Reply With Quote
Reply

Bookmarks

Tags
virtual device

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Store and retrieve device status (in virtual device?) Patholoraptor BLDenon (3P) 1 August 9th, 2016 09:25 PM
Can a virtual Harmony Hub device control a real device or activity in HS? rayvino Harmony Hub 15 April 13th, 2016 07:53 AM
How to combine device status's into virtual device bandook HS3 Scripting 7 February 12th, 2016 02:41 PM
HS3 Script Syntax to copy one virtual device status string to another virtual device pjohnson HS3 Scripting 8 December 31st, 2014 02:48 PM
Parse device string and update as the value of a virtual device ccat HomeSeer General Discussion Area 5 December 14th, 2010 04:32 PM


All times are GMT -4. The time now is 11:38 PM.


Copyright HomeSeer Technologies, LLC