• 10 dec 2017: forum version update. In case of issues use this topic.
  • 30 nov 2017: pilight moved servers. In case of issues use this topic.
Hello There, Guest! Login Register


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
API Requests by HTTP from other devices fore use in pilight
#1
Hello, sorry about the question, but my competence is not even sufficient to use the search here .... Crying

I have a solar system (Fronius), which enables API requests via HTTP. I tried to query some data and that worked very well. As an an example: http: //xxx.xxx.xxx.x/solar_api/v1/GetMeterRealtimeData.cgi? Scope=System

outputs the following data:

body

Data
1
Details
Manufacturer "Fronius"
Model "S0 Meter at inverter 1"
Serial "n.a."
Enable 1
EnergyReal_WAC_Minus_Relative 107
Meter_Location_Current 1
PowerReal_P_Sum -1323.2861063583441
TimeStamp 1588937751
Visible 1

Head
RequestArguments
DeviceClass "Meter"
Scope "system"
status
Code 0
Reason ""
UserMessage ""
Timestamp

Now to my question: Is there an "easy" way  to take one of these values by HTTP and use is as variable with config.sys in pilight (for rules)? For example the value  "1323.2861063583441" from "PowerReal_P_Sum"?

thanks for your help

Scooter
 
Reply
#2
You could make a hardware module for it using the lua API.
 
Reply
#3
(05-08-2020, 03:55 PM)curlymo Wrote: You could make a hardware module for it using the lua API.

Thank you, I will check that.

Scooter
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  problem publish to pilight MQTT server Emiks5 4 259 08-31-2020, 07:45 PM
Last Post: Emiks5
  pilight for Raspbian Buster (raspberry pi 4) ? starob 32 8,751 08-10-2020, 09:12 AM
Last Post: simanuel
  pilight switch node in node-red framp 0 374 06-24-2020, 10:01 PM
Last Post: framp
  pilight-control TML 13 1,244 05-27-2020, 07:51 AM
Last Post: curlymo
  pilight-send seems successful but doesn't actually send RF signal ayeyebrazov 37 3,792 03-31-2020, 01:02 PM
Last Post: curlymo
  pilight 8.1.5 not working on Raspberry pi after reboot beejayf 4 1,063 03-08-2020, 12:14 AM
Last Post: beejayf
  pilight cpu usage possibly associated with noticeable sluggishness? hepcat72 4 1,130 01-28-2020, 08:02 PM
Last Post: hepcat72
  apt.pilight.org stable Release' is not signed. thomasol 2 1,255 01-23-2020, 11:34 PM
Last Post: thomasol
  pilight and SIGNALduino cc1101 Caleus 0 832 01-19-2020, 09:13 AM
Last Post: Caleus
  filter stopped working after update to pilight 8.1.5 zlin50 19 2,550 01-03-2020, 02:15 PM
Last Post: curlymo

Forum Jump:


Browsing: 1 Guest(s)