- Posts: 12
- Thank you received: 0
Please Log in or Create an account to join the conversation.
freol wrote: Hi,
Does EasyIoT support http requests or something similar?
I would like to be able to update a "sensor" in EasyIoT from another raspberry pi, preferably using python. The other raspberry pi is wifi-connected to same network as the EasyIoT-raspi.
Any suggestions?
Thanks in advance
Please Log in or Create an account to join the conversation.
EasyIoT wrote:
freol wrote: Hi,
Does EasyIoT support http requests or something similar?
I would like to be able to update a "sensor" in EasyIoT from another raspberry pi, preferably using python. The other raspberry pi is wifi-connected to same network as the EasyIoT-raspi.
Any suggestions?
Thanks in advance
Yes, use Virtual driver and virtual nodes and then call
http://[IP address]Api/EasyIoT/Control/Module/Virtual/[address]ControlLevel/[value]
for analog
or
http://[IP address]Api/EasyIoT/Control/Module/Virtual/[address]ControlOn/
http://[IP address]Api/EasyIoT/Control/Module/Virtual/[address]ControlOff/
for digital
IP adress - EasyIoT server address
address - virtual module address
value - temperature value
Use basic authentication - username and password is the same as EasyIoT login.
Please Log in or Create an account to join the conversation.
freol wrote:
EasyIoT wrote:
freol wrote: Hi,
Does EasyIoT support http requests or something similar?
I would like to be able to update a "sensor" in EasyIoT from another raspberry pi, preferably using python. The other raspberry pi is wifi-connected to same network as the EasyIoT-raspi.
Any suggestions?
Thanks in advance
Yes, use Virtual driver and virtual nodes and then call
http://[IP address]Api/EasyIoT/Control/Module/Virtual/[address]ControlLevel/[value]
for analog
or
http://[IP address]Api/EasyIoT/Control/Module/Virtual/[address]ControlOn/
http://[IP address]Api/EasyIoT/Control/Module/Virtual/[address]ControlOff/
for digital
IP adress - EasyIoT server address
address - virtual module address
value - temperature value
Use basic authentication - username and password is the same as EasyIoT login.
Thanks for the response. Unfortunately I can only get the digital part of it working
When calling the url for the digital sensor, I get the following response:
[{ "ResponseValue" : "1" }]
and the sensor is updated accordingly in the web interface. Nice!
But, for the analog sensor, I get no response, no popup, no update, nothing.
The weird (?) part is that if icall the analog sensor using one of the digital urls, i get a response as above and a popup in the web interface. But the analog sensor is not updated.
Maybe the url for updating the analog sensor has an error in it somewhere or am I missing something obvious?
Thanks in advance!
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
freol wrote: Ok, doesnt work with the extra / at the end either. Will be waiting patiently on the next release then
Please Log in or Create an account to join the conversation.