• 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 5 1,342 03-18-2021, 07:23 PM
Last Post: Emiks5
  Hardware Switch and pilight-send/-control iTommix 3 480 02-14-2021, 09:25 PM
Last Post: iTommix
  pilight error after update to 8.1.5 on Odroid C2 WitchDoctor 4 1,628 02-07-2021, 09:50 PM
Last Post: pilightalpine
  pilight in Docker not accepting connections due to possible SYN flooding akloeckner 3 401 02-07-2021, 04:22 PM
Last Post: akloeckner
  pilight-debug format Rschnauzer 2 419 12-17-2020, 07:09 PM
Last Post: Rschnauzer
  pilight-flash not working danny 14 3,171 12-12-2020, 10:00 AM
Last Post: tox
  pilight does not start, Deamon is not found. Dekkertje 6 697 12-08-2020, 06:55 PM
Last Post: Dekkertje
  Failed pilight-send that say they succeeded hepcat72 2 450 12-05-2020, 05:30 PM
Last Post: hepcat72
  apt.pilight.org/dists/stable/main/binary 301 Moved Permanently Rschnauzer 6 758 11-23-2020, 01:49 PM
Last Post: Rschnauzer
  bridging pilight and mosquitto hansrijn2 5 1,155 10-26-2020, 06:31 PM
Last Post: hansrijn2

Forum Jump:


Browsing: 1 Guest(s)