File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -97,8 +97,8 @@ function update(weatherEvent) {
9797 } else if ( weather1 . weather != null && weather1 . weather . feels === undefined ) {
9898 // Grab feels like temperature as we have it in v2
9999 weather1 . weather . feels = decodeWeatherV2FeelsLike ( weatherEvent ) ;
100- storage . write ( "weather.json" , weather ) ;
101- exports . emit ( "update" , weather ) ;
100+ storage . write ( "weather.json" , weather1 ) ;
101+ exports . emit ( "update" , weather1 ) ;
102102 }
103103
104104 cloned = undefined ; // Clear memory
Original file line number Diff line number Diff line change 1- ( back ) => {
1+ ( function ( back ) {
22 const storage = require ( "Storage" ) ;
33 let settings = storage . readJSON ( "weatherSetting.json" , 1 ) ;
44
2121
2222 const DATA_TYPE = [ "basic" , "extended" , "forecast" ] ;
2323
24- menuItems = {
24+ let menuItems = {
2525 "" : { "title" : "Weather" } ,
2626 "Expiry" : {
2727 value : "expiry" in settings ? settings . expiry : 2 * 3600000 ,
8484 }
8585
8686 E . showMenu ( menuItems ) ;
87- } ;
87+ } )
You can’t perform that action at this time.
0 commit comments