|
|
@@ -227,9 +227,14 @@ THREAD(AlarmSync, arg)
|
|
|
char url[49];
|
|
|
sprintf(url, "/getAlarmen.php?radiomac=%s&tz=%d", getMacAdress(), getTimeZone());
|
|
|
httpGet(url, parseAlarmJson);
|
|
|
+
|
|
|
char url2[43];
|
|
|
sprintf(url2, "/getTwitch.php?radiomac=%s", getMacAdress());
|
|
|
httpGet(url2, parseTwitch);
|
|
|
+ char url3[43];
|
|
|
+ sprintf(url3,"/getTwitter.php?radiomac=%s", getMacAdress());
|
|
|
+ httpGet(url3,TwitterParser);
|
|
|
+
|
|
|
isAlarmSyncing = false;
|
|
|
//Command que (Telegram) sync
|
|
|
sprintf(url, "%s%s", "/getCommands.php?radiomac=", getMacAdress());
|
|
|
@@ -279,12 +284,11 @@ int main(void)
|
|
|
|
|
|
VsPlayerInit();
|
|
|
|
|
|
- NtpInit();
|
|
|
+ NtpInit();
|
|
|
|
|
|
NutThreadCreate("BackgroundThread", StartupInit, NULL, 1024);
|
|
|
NutThreadCreate("BackgroundThread", AlarmSync, NULL, 2500);
|
|
|
NutThreadCreate("BackgroundThread", AlarmCheck, NULL, 256);
|
|
|
- /** Quick fix for turning off the display after 10 seconds boot */
|
|
|
|
|
|
KbInit();
|
|
|
|
|
|
@@ -326,6 +330,8 @@ int main(void)
|
|
|
}else if(KbGetKey() == KEY_UP){
|
|
|
setCurrentDisplay(DISPLAY_Volume, 5);
|
|
|
volumeUp();
|
|
|
+ }else if(KbGetKey() == KEY_LEFT){
|
|
|
+ setCurrentDisplay(DISPLAY_Twitter,20);
|
|
|
}else{
|
|
|
setCurrentDisplay(DISPLAY_DateTime, 5);
|
|
|
}
|