Forum Replies Created
-
AuthorPosts
-
Pat Molloy
ParticipantOk, thought that might be the case.
TVM.
Pat Molloy
ParticipantOk, thanks! Got it. I’ve got it to work (as a test) using ARC (Advanced Rest Client).
Pat Molloy
ParticipantThanks, Radu, has this changed then?
I can use a command line CURL to do this or a bit of python, but can I actaully do this by simply typing a URL into my browser with the authentication data included?
e.g. http://data.uradmonitor.com/api/v1/devices/8200000f/all/ PLUS some the authentication data?
Sorry, this is a bit of NOOB question 🙂
Pat
Pat Molloy
ParticipantHi @nox,
Success !! Genius 🙂
I had a false start and was in the process of sending the latest dump, but then realised my monitor had gone offline/lost its IP address. On rebooting, all is good !
[2016-09-24 14:36:58] Device received 0 from server (WDT=21) [2016-09-24 14:37:03] Device received 0 from server (WDT=25) [2016-09-24 14:37:08] Device received 0 from server (WDT=30) [2016-09-24 14:37:13] Device received 0 from server (WDT=35) [2016-09-24 14:37:18] Device received 0 from server (WDT=39) [2016-09-24 14:37:23] Device received 0 from server (WDT=44) [2016-09-24 14:37:28] Device received 0 from server (WDT=48) [2016-09-24 14:37:33] Device received 0 from server (WDT=53) [2016-09-24 14:37:38] Device received 0 from server (WDT=58) [2016-09-24 14:37:43] Device received 0 from server (WDT=62) [2016-09-24 14:37:48] Device received 0 from server (WDT=67) [2016-09-24 14:37:53] Device received 0 from server (WDT=72) [2016-09-24 14:37:58] Device received 0 from server (WDT=76) [2016-09-24 14:38:03] Device received 0 from server (WDT=81) [2016-09-24 14:38:08] Device received 0 from server (WDT=86) [2016-09-24 14:38:13] Device received 0 from server (WDT=90) [2016-09-24 14:38:18] Device received 0 from server (WDT=95) [2016-09-24 14:38:23] Device received 0 from server (WDT=100) [2016-09-24 14:38:29] Device received 0 from server (WDT=104) [2016-09-24 14:38:34] Device received 0 from server (WDT=109) [2016-09-24 14:40:35] Device received 0 from server (WDT=54)
Pat Molloy
ParticipantNope, here is the html code
<b>uRADMonitor 8200000F</b><br>type:8 hw:103 sw:119 SI29BG<hr>radiation:13CPM<br>temperature:36.52C<br>pressure:101718Pa<br>humidty:23.20RH<br>VOC:90459<br>CH2O:0.20ppm<br>PM2.5:1ug/m^3<br>CO2:774ppm<br>voltage:380V<br>duty:21%<br>frequency:15.50kHz<br>uptime:402800s wdt:18s/350s<br><br>ip:192.168.254.11<br>server:23.239.13.18<br>http:200 6628/6712 60s<hr><a href="/j">JSON</a>
Pat Molloy
ParticipantHmmm, are these files getting attached ?
Pat Molloy
ParticipantHere we go .. also .html file attached
uRADMonitor 8200000F
type:8 hw:103 sw:119 SI29BG
radiation:7CPM
temperature:36.38C
pressure:101719Pa
humidty:23.64RH
VOC:90671
CH2O:0.21ppm
PM2.5:3ug/m^3
CO2:810ppm
voltage:380V
duty:21%
frequency:15.50kHz
uptime:402685s wdt:23s/350sip:192.168.254.11
server:23.239.13.18
http:200 6626/6710 60s
JSONThanks !
Pat Molloy
ParticipantHi, no luck I’m afraid ..
[2016-09-22 11:22:18] Device data fetch error. Exception: System.FormatException: Input string was not in a correct format.
at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at uRADMonitorX.Core.Device.DeviceDataReader.internalParse(String rawText)
at uRADMonitorX.Core.Device.DeviceDataHttpReader.Read()
at uRADMonitorX.Core.Fetchers.DeviceDataFetcher.doWork(Object o, EventArgs e)Pat Molloy
ParticipantVery cool! Thanks 🙂 I will give it a go.
Pat
Pat Molloy
ParticipantHi there,
Ok. thanks for the quick reply. Thought that might be the case. I’ll grab the right version in the meantime !
Pat
Pat Molloy
ParticipantHi, just installed a new A3; all working fine – sitting at 192.168.254.11 on local network.
uRadMonitorX (running v0.37.0.39201) on Windows 10 64bit, and getting “Device data fetch error”
This is in the logfile (a lot of times!)
[2016-09-18 19:10:10] Device data fetch error. Exception: System.ArgumentOutOfRangeException: Length cannot be less than zero.
Parameter name: length
at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)
at uRADMonitorX.Core.Device.DeviceDataReader.internalParse(String rawText)
at uRADMonitorX.Core.Device.DeviceDataHttpReader.Read()
at uRADMonitorX.Core.Fetchers.DeviceDataFetcher.doWork(Object o, EventArgs e) -
AuthorPosts