{"action":"created","issue":{"url":"https://api.github.com/repos/ThingPulse/esp8266-weather-station/issues/148","repository_url":"https://api.github.com/repos/ThingPulse/esp8266-weather-station","labels_url":"https://api.github.com/repos/ThingPulse/esp8266-weather-station/issues/148/labels{/name}","comments_url":"https://api.github.com/repos/ThingPulse/esp8266-weather-station/issues/148/comments","events_url":"https://api.github.com/repos/ThingPulse/esp8266-weather-station/issues/148/events","html_url":"https://github.com/ThingPulse/esp8266-weather-station/issues/148","id":393310308,"node_id":"MDU6SXNzdWUzOTMzMTAzMDg=","number":148,"title":"Unable to compile app straight out of the box","user":{"login":"cthompsonau","id":46040453,"node_id":"MDQ6VXNlcjQ2MDQwNDUz","avatar_url":"https://avatars0.githubusercontent.com/u/46040453?v=4","gravatar_id":"","url":"https://api.github.com/users/cthompsonau","html_url":"https://github.com/cthompsonau","followers_url":"https://api.github.com/users/cthompsonau/followers","following_url":"https://api.github.com/users/cthompsonau/following{/other_user}","gists_url":"https://api.github.com/users/cthompsonau/gists{/gist_id}","starred_url":"https://api.github.com/users/cthompsonau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cthompsonau/subscriptions","organizations_url":"https://api.github.com/users/cthompsonau/orgs","repos_url":"https://api.github.com/users/cthompsonau/repos","events_url":"https://api.github.com/users/cthompsonau/events{/privacy}","received_events_url":"https://api.github.com/users/cthompsonau/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-12-21T04:28:39Z","updated_at":"2018-12-25T09:56:01Z","closed_at":null,"author_association":"NONE","body":"Sample code doesn't compile for weatherstation. Returns the following error\r\n```\r\nC:\\Users\\christopher\\Documents\\Arduino\\libraries\\ESP8266_Weather_Station\\src\\TimeClient.cpp: In member function 'long int TimeClient::getCurrentEpochWithUtcOffset()':\r\n\r\nC:\\Users\\christopher\\Documents\\Arduino\\libraries\\ESP8266_Weather_Station\\src\\TimeClient.cpp:124:67: error: invalid operands of types 'double' and 'long int' to binary 'operator%'\r\n\r\n   return round(getCurrentEpoch() + 3600 * myUtcOffset + 86400L) % 86400L;](url)\r\n```\r\nWe are using the default settings.h but something seems simple that we are missing. Any help would be appreciated.\r\n\r\n```\r\n\r\n#define UTC_OFFSET +1\r\nstruct dstRule StartRule = {\"CEST\", Last, Sun, Mar, 2, 3600}; // Central European Summer Time = UTC/GMT +2 hours\r\nstruct dstRule EndRule = {\"CET\", Last, Sun, Oct, 2, 0};       // Central European Time = UTC/GMT +1 hour\r\n```"},"comment":{"url":"https://api.github.com/repos/ThingPulse/esp8266-weather-station/issues/comments/449834090","html_url":"https://github.com/ThingPulse/esp8266-weather-station/issues/148#issuecomment-449834090","issue_url":"https://api.github.com/repos/ThingPulse/esp8266-weather-station/issues/148","id":449834090,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0OTgzNDA5MA==","user":{"login":"just-jason","id":45034489,"node_id":"MDQ6VXNlcjQ1MDM0NDg5","avatar_url":"https://avatars1.githubusercontent.com/u/45034489?v=4","gravatar_id":"","url":"https://api.github.com/users/just-jason","html_url":"https://github.com/just-jason","followers_url":"https://api.github.com/users/just-jason/followers","following_url":"https://api.github.com/users/just-jason/following{/other_user}","gists_url":"https://api.github.com/users/just-jason/gists{/gist_id}","starred_url":"https://api.github.com/users/just-jason/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/just-jason/subscriptions","organizations_url":"https://api.github.com/users/just-jason/orgs","repos_url":"https://api.github.com/users/just-jason/repos","events_url":"https://api.github.com/users/just-jason/events{/privacy}","received_events_url":"https://api.github.com/users/just-jason/received_events","type":"User","site_admin":false},"created_at":"2018-12-25T09:56:01Z","updated_at":"2018-12-25T09:56:01Z","author_association":"NONE","body":"return fmod(round(getCurrentEpoch() + 3600 * myUtcOffset + 86400L), 86400L);\r\nWorks for me, thanks for the tip"}}
{"actor":{"display_login":"just-jason"}}