Hi Guys,
Been pulling my hair out about this! I am trying to get the IOS app working on my own phone pointing to my own server…
I scan the QR code, make sure everything is configured, I can see all the feeds and when I manually refresh they update, so comms should be A-OK… However, when I try to create an app and I specify a live feed as well as an accumulative kwh feed, I get the dreaded “Cannot connect to emoncms” message.
For what it’s worth, I am pasting what I could find in the logs. It seems to be complaining about not having data points to connect to, but the data has been there for ages, and are updated once every 5 seconds, so unless the error is a bit vague, I am not sure what to look for or where to begin troubleshooting. I do notice that there is a preceding “unknown error” before the data point crap starts, so maybe my root cause is there, but then the problem is even more difficult, cause who knows how to fix an unknown error? haha!
Anyway, here is my log, any help would be greatly appreciated!
2018-06-30 08:59:56.259 [Info] > EmonCMSiOS Version: 1.0 Build: 12 PID: 740
2018-06-30 08:59:56.259 [Info] > XCGLogger Version: 4.0.0 - Level: Debug
2018-06-30 08:59:56.275 [Info] > XCGLogger writing log to: file:///var/mobile/Containers/Data/Application/6CD7826B-A276-4C6B-825C-BEF43BB4E973/Library/Caches/logs/log.txt
2018-06-30 09:00:06.167 [Info] [NSOperationQueue 0x16d53770 :: NSOperation 0x18039430 (QOS: DEFAULT)] [EmonCMSAPI.swift:56] request(_:path:queryItems:) > Network request error: unknown
2018-06-30 09:00:09.250 [Info] [NSOperationQueue 0x16d53770 :: NSOperation 0x16f40390 (QOS: DEFAULT)] [EmonCMSAPI.swift:56] request(_:path:queryItems:) > Network request error: unknown
2018-06-30 09:03:31.029 [Info] [NSOperationQueue 0x16d53770 :: NSOperation 0x180345e0 (QOS: DEFAULT)] [MyElectricAppViewModel.swift:180] update() > Uodate failed: generic("Start of day data had no data points")
2018-06-30 09:03:41.212 [Info] [NSOperationQueue 0x16d53770 :: NSOperation 0x18173980 (QOS: DEFAULT)] [MyElectricAppViewModel.swift:180] update() > Uodate failed: generic("Start of day data had no data points")
2018-06-30 09:03:51.194 [Info] [NSOperationQueue 0x16d53770 :: NSOperation 0x1801c380 (QOS: DEFAULT)] [MyElectricAppViewModel.swift:180] update() > Uodate failed: generic("Start of day data had no data points")
2018-06-30 09:04:01.182 [Info] [NSOperationQueue 0x16d53770 :: NSOperation 0x180159a0 (QOS: DEFAULT)] [MyElectricAppViewModel.swift:180] update() > Uodate failed: generic("Start of day data had no data points")