Send POST to /api/4/parser/data with a JSON body as below. If
timestamp is missing the current device time when the POST was made will be
used.
{ "weather": [
{
"timestamp": 1563362587,
"mintemp": null,
"maxtemp": null,
"temperature": null,
"wind": null,
"solarrad": null,
"qpf": null,
"rain": null,
"minrh": null,
"maxrh": null,
"condition": 26,
"pressure": null,
"dewpoint": null
}
]
}gary@ftp ~ $ curl -X POST -k -d ' { "pwd": "admin", "remember":1}' https://10.10.100.120:8080/api/4/auth/login
{ "statusCode": 2, "message": "Not Authenticated !" }Hello,I fail to get a token:gary@ftp ~ $ curl -X POST -k -d ' { "pwd": "admin", "remember":1}' https://10.10.100.120:8080/api/4/auth/login
{ "statusCode": 2, "message": "Not Authenticated !" }
But I am able to access the device and get the API info.
{"apiVer": "4.6.0", "hwVer": 2, "swVer": "4.0.954"}
Of course not <g>I'm good to go now. Just removing admin as your message came in.
Oct 3 11:30:46 ftp weewx[31876]: restx: RainMachine: Failed to publish record 2018-10-03 11:30:00 EDT (1538580600): Failed upload after 3 tries
Done.Have a token, installed the extension, enabled push on the Mini-8, restarted weewx.Getting an error:Oct 3 11:30:46 ftp weewx[31876]: restx: RainMachine: Failed to publish record 2018-10-03 11:30:00 EDT (1538580600): Failed upload after 3 tries
BTW- the file, when downloaded is named 'rainmachine-weewx-weewx-rainmachine-v0.2.tar.gz'
2018-10-03 11:39:34,876 - INFO - rmUserSettings:160 - ---------------------------------------------------------------------------------------------
2018-10-03 11:39:34,913 - INFO - rmThreadWatcher:136 - ThreadWatcher running True
2018-10-03 11:39:34,975 - INFO - rmLocalNetworkAdvertise:111 - Local Network Advertiser starting
2018-10-03 11:39:35,086 - INFO - rmParserManager:228 - *** BEGIN Loading parsers from './RMParserFramework/parsers'
2018-10-03 11:39:35,140 - INFO - rmParser:69 - *** Registering parser OpenWeatherMap Parser with interval 21600
2018-10-03 11:39:35,318 - INFO - rmParser:69 - *** Registering parser Netatmo Parser with interval 21600
2018-10-03 11:39:35,590 - INFO - rmParser:69 - *** Registering parser WUnderground Parser with interval 21600
2018-10-03 11:39:35,768 - INFO - rmParser:69 - *** Registering parser CIMIS Parser with interval 21600
2018-10-03 11:39:38,992 - INFO - rmParser:69 - *** Registering parser ForecastIO Parser with interval 21600
2018-10-03 11:39:39,515 - INFO - rmParser:69 - *** Registering parser Weather Rules Parser with interval 3600
2018-10-03 11:39:39,827 - INFO - rmParser:69 - *** Registering parser NOAA Parser with interval 21600
2018-10-03 11:39:39,948 - INFO - rmParser:69 - *** Registering parser FAWN Parser with interval 21600
2018-10-03 11:39:40,095 - INFO - rmParser:69 - *** Registering parser PWS Parser with interval 21600
2018-10-03 11:39:40,275 - INFO - rmParser:69 - *** Registering parser METNO Parser with interval 21600
2018-10-03 11:39:40,357 - INFO - rmParserManager:313 - *** END Loading parsers
2018-10-03 11:39:48,427 - INFO - rmTouchManager:544 - Closing boot animation
2018-10-03 11:39:48,605 - INFO - rmTouchManager:260 - Touch Manager is starting up ...
2018-10-03 11:39:48,821 - INFO - rmMainManager:129 - Starting bonjour service
2018-10-03 11:39:49,417 - WARNING - rmParserManager:181 - * Parser Local Weather Push Parser returned no values
I'm game to get any data needed for you.I can enable addtional logging from weewx if you'd like.
I restarted the Mini-82018-10-03 11:39:34,876 - INFO - rmUserSettings:160 - ---------------------------------------------------------------------------------------------
2018-10-03 11:39:34,913 - INFO - rmThreadWatcher:136 - ThreadWatcher running True
2018-10-03 11:39:34,975 - INFO - rmLocalNetworkAdvertise:111 - Local Network Advertiser starting
2018-10-03 11:39:35,086 - INFO - rmParserManager:228 - *** BEGIN Loading parsers from './RMParserFramework/parsers'
2018-10-03 11:39:35,140 - INFO - rmParser:69 - *** Registering parser OpenWeatherMap Parser with interval 21600
2018-10-03 11:39:35,318 - INFO - rmParser:69 - *** Registering parser Netatmo Parser with interval 21600
2018-10-03 11:39:35,590 - INFO - rmParser:69 - *** Registering parser WUnderground Parser with interval 21600
2018-10-03 11:39:35,768 - INFO - rmParser:69 - *** Registering parser CIMIS Parser with interval 21600
2018-10-03 11:39:38,992 - INFO - rmParser:69 - *** Registering parser ForecastIO Parser with interval 21600
2018-10-03 11:39:39,515 - INFO - rmParser:69 - *** Registering parser Weather Rules Parser with interval 3600
2018-10-03 11:39:39,827 - INFO - rmParser:69 - *** Registering parser NOAA Parser with interval 21600
2018-10-03 11:39:39,948 - INFO - rmParser:69 - *** Registering parser FAWN Parser with interval 21600
2018-10-03 11:39:40,095 - INFO - rmParser:69 - *** Registering parser PWS Parser with interval 21600
2018-10-03 11:39:40,275 - INFO - rmParser:69 - *** Registering parser METNO Parser with interval 21600
2018-10-03 11:39:40,357 - INFO - rmParserManager:313 - *** END Loading parsers
2018-10-03 11:39:48,427 - INFO - rmTouchManager:544 - Closing boot animation
2018-10-03 11:39:48,605 - INFO - rmTouchManager:260 - Touch Manager is starting up ...
2018-10-03 11:39:48,821 - INFO - rmMainManager:129 - Starting bonjour service
2018-10-03 11:39:49,417 - WARNING - rmParserManager:181 - * Parser Local Weather Push Parser returned no values
Oct 3 12:05:58 ftp weewx[725]: restx: RainMachine: Failed upload attempt 1: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:726)
Here's the answer:Oct 3 12:05:58 ftp weewx[725]: restx: RainMachine: Failed upload attempt 1: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:726)
On Wednesday, October 3, 2018 at 9:07:20 AM UTC-7, G Hammer wrote:Here's the answer:Oct 3 12:05:58 ftp weewx[725]: restx: RainMachine: Failed upload attempt 1: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:726)
Oct 4 09:00:59 ftp weewx[26437]: restx: RainMachine: Published record 2018-10-04 09:00:00 EDT (1538658000)2018-10-04 09:00:59,363 - INFO - rmHTTPResourceApi4Parser:415 - Local Weather API push: 1538658000.0: {'maxtemp': 16.485185185185188, 'temperature': 16.041666666666669, 'dewpoint': 15.705232150809789, 'maxrh': 97.875, 'rain': 0.0, 'pressure': 10199.801134355374, 'timestamp': 1538658000.0, 'mintemp': 13.777777777777776, 'et': 0.0030527243389449561, 'wind': 0.24587199993115592}
Oct 4 10:00:59 ftp weewx[26437]: restx: RainMachine: Published record 2018-10-04 10:00:00 EDT (1538661600)
2018-10-04 10:00:59,405 - INFO - rmHTTPResourceApi4Parser:415 - Local Weather API push: 1538661600.0: {'maxtemp': 17.597222222222224, 'temperature': 17.597222222222224, 'dewpoint': 16.237444005768064, 'maxrh': 91.75, 'rain': 0.0, 'pressure': 10196.414746196559, 'timestamp': 1538661600.0, 'mintemp': 13.777777777777776, 'et': 0.0071871959933606768, 'wind': 0.63703199982163119}
2018-10-04 10:05:15,735 - WARNING - rmParserManager:181 - * Parser Local Weather Push Parser returned no values
The Mini-8 is receiving and using the push data.Seems it wanted to go past midnight to show proper status on the Mini-8.In any event, all seems to be working well. No further Warnings in the Mini-8 logs and the 3 weather sources I have enabled all show a green Success on the dashboard.
2018-10-17 08:10:30,354 - INFO - rmHTTPResourceApi4Parser:415 - Local Weather API push: 1539778200.0: {'maxtemp': 8.9333333333333313, 'temperature': 3.1031746031746048, 'dewpoint': 2.9612925356157762, 'maxrh': 99.0, 'rain': 0.0, 'pressure': 10160.373900792009, 'timestamp': 1539778200.0, 'mintemp': 1.6437908496731961, 'et': 0.00093909925489917314, 'wind': 0.006386285712497555}
2018-10-17 08:14:24,261 - INFO - rmMixer:123 - *** DATA IN THE PAST: 2018-10-16 00:00:00
2018-10-17 08:14:24,274 - INFO - rmMixer:124 - *** Received data: ('2018-10-16 00:00:00', temp=9.4/1, minTemp=None/0, maxTemp=None/0, rh=64/1, minRh=None/0, maxRh=None/0, wind=0.83/1, solarRad=None/0, skyCover=None/0, rain=0.5/1, et0=None/0, pop=None/0, qpf=None/0, condition=None/0, pressure=101.75/1, dewPoint=2.1/1, userData=None, minTemp=5.6/0, maxTemp=13.4/0, minRH=43/0, maxRH=96/0, et0cal=None, et0final=None)
2018-10-17 08:14:24,316 - INFO - rmMixer:131 - *** Added Existing data: '2018-10-16 00:00:00', temp=9.41/1, minTemp=None/0, maxTemp=None/0, rh=64/1, minRh=None/0, maxRh=None/0, wind=0.36/1, solarRad=None/0, skyCover=None/0, rain=0.51/1, et0=None/0, pop=0/1, qpf=0.13/1, condition=3/1, pressure=259.49/1, dewPoint=2.11/1, userData=None, minTemp=5.57/1, maxTemp=13.4/1, minRH=43/1, maxRH=95.75/1, et0cal=1.7267785245346546, et0final=1.73
2018-10-17 09:10:30,277 - INFO - rmHTTPResourceApi4Parser:415 - Local Weather API push: 1539781800.0: {'maxtemp': 8.9333333333333313, 'temperature': 6.0666666666666734, 'dewpoint': 4.508612283904373, 'maxrh': 89.733333333333325, 'rain': 0.0, 'pressure': 10162.325105397803, 'timestamp': 1539781800.0, 'mintemp': 1.6437908496731961, 'et': 0.0026893711979634374, 'wind': 0.02384213332665754}
2018-10-17 09:14:40,913 - INFO - rmMixer:123 - *** DATA IN THE PAST: 2018-10-16 00:00:00
2018-10-17 09:14:41,022 - INFO - rmMixer:124 - *** Received data: ('2018-10-16 00:00:00', temp=9.4/1, minTemp=None/0, maxTemp=None/0, rh=64/1, minRh=None/0, maxRh=None/0, wind=0.83/1, solarRad=None/0, skyCover=None/0, rain=0.5/1, et0=None/0, pop=None/0, qpf=None/0, condition=None/0, pressure=101.75/1, dewPoint=2.1/1, userData=None, minTemp=5.6/0, maxTemp=13.4/0, minRH=43/0, maxRH=96/0, et0cal=None, et0final=None)
2018-10-17 09:14:41,291 - INFO - rmMixer:131 - *** Added Existing data: '2018-10-16 00:00:00', temp=9.41/1, minTemp=None/0, maxTemp=None/0, rh=64/1, minRh=None/0, maxRh=None/0, wind=0.36/1, solarRad=None/0, skyCover=None/0, rain=0.51/1, et0=None/0, pop=0/1, qpf=0.13/1, condition=3/1, pressure=180.62/1, dewPoint=2.11/1, userData=None, minTemp=5.59/1, maxTemp=13.4/1, minRH=43/1, maxRH=95.88/1, et0cal=1.7224557564357078, et0final=1.72
2018-10-17 10:10:30,424 - INFO - rmHTTPResourceApi4Parser:415 - Local Weather API push: 1539785400.0: {'maxtemp': 8.9333333333333313, 'temperature': 8.3888888888888979, 'dewpoint': 4.923520573983258, 'maxrh': 78.8, 'rain': 0.0, 'pressure': 10152.391700131944, 'timestamp': 1539785400.0, 'mintemp': 1.6437908496731961, 'et': 0.0038388600236956096, 'wind': 0.22650026660324666}
2018-10-17 10:14:58,811 - INFO - rmMixer:123 - *** DATA IN THE PAST: 2018-10-16 00:00:00
2018-10-17 10:14:58,824 - INFO - rmMixer:124 - *** Received data: ('2018-10-16 00:00:00', temp=9.4/1, minTemp=None/0, maxTemp=None/0, rh=64/1, minRh=None/0, maxRh=None/0, wind=0.83/1, solarRad=None/0, skyCover=None/0, rain=0.5/1, et0=None/0, pop=None/0, qpf=None/0, condition=None/0, pressure=101.75/1, dewPoint=2.1/1, userData=None, minTemp=5.6/0, maxTemp=13.4/0, minRH=43/0, maxRH=96/0, et0cal=None, et0final=None)
2018-10-17 10:14:58,883 - INFO - rmMixer:131 - *** Added Existing data: '2018-10-16 00:00:00', temp=9.41/1, minTemp=None/0, maxTemp=None/0, rh=64/1, minRh=None/0, maxRh=None/0, wind=0.36/1, solarRad=None/0, skyCover=None/0, rain=0.51/1, et0=None/0, pop=0/1, qpf=0.13/1, condition=3/1, pressure=141.19/1, dewPoint=2.11/1, userData=None, minTemp=5.6/1, maxTemp=13.4/1, minRH=43/1, maxRH=95.94/1, et0cal=1.719756924582572, et0final=1.72
2018-10-17 10:18:09,115 - INFO - rmMainManager:216 - Upgrade checked.
Enter code here...2018-10-19 06:25:27,518 - INFO - rmHTTPResourceApi4Parser:415 - Local Weather API push: 1539955500.0: {'maxtemp': 19.302000000000007, 'temperature': 2.911999999999999, 'dewpoint': -5.9699246296052841, 'maxrh': 52.0, 'rain': 0.0, 'pressure': 10297.794188428035, 'timestamp': 1539955500.0, 'mintemp': 2.911999999999999, 'et':

seems significantly out of line with the data received from other parsers (see screenshot).
After carefully watching the logs, the Min-8 is not recording the local push data correctly:
I updated the extension to version 0.4 which should fix pressure conversion.
--
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/BDHeIDbKoMY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
2018-10-22 09:55:32,134 - INFO - rmHTTPResourceApi4Parser:415 - Local Weather API push: 1540216500.0: {'maxtemp': 5.2222222222222215, 'temperature': 5.2222222222222215, 'dewpoint': -0.40143740378300393, 'maxrh': 67.0, 'rain': 0.0, 'pressure': 102.57369733055256, 'timestamp': 1540216500.0, 'mintemp': -1.653846153846159, 'et': 0.003105426715616225, 'wind': 1.6093439995493841}On Oct 22, 2018, at 1:04 AM, nicu....@rainmachine.com wrote:
I updated the extension to version 0.4 which should fix pressure conversion.
--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.