Skip to content

Commit

Permalink
Removed exec files
Browse files Browse the repository at this point in the history
  • Loading branch information
vasvlad committed Jan 6, 2025
1 parent d28d1df commit 68c84f7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
8 changes: 6 additions & 2 deletions omweather-fmi-fi-stations-db/omweather-fmi-fi-stations-db.pro
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@


TARGET = fmifi
TEMPLATE = app
TEMPLATE = lib
#TEMPLATE = app



Expand All @@ -19,6 +20,7 @@ SOURCES += src/meego-main.cpp \

FORMS +=

DEFINES += "USE_OS_TZDB=1"
OTHER_FILES += \

DEFINES += "USE_OS_TZDB=1"
Expand All @@ -43,14 +45,16 @@ QMAKE_CXXFLAGS += -fPIC -std=c++14
#}


CONFIG += static
db.files = data/fmi.fi.db
db.path = /opt/com.meecast.omweather/share/db/


source.files = data/fmi.fi.xml
source.path = /opt/com.meecast.omweather/share/sources/

#install
target.path = /opt/com.meecast.omweather/lib
INSTALLS += target db source
INSTALLS += db source


5 changes: 3 additions & 2 deletions omweather-fmi-fi-stations-db/src/meego-main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,7 @@ parse_and_write_days_xml_data(const char *days_data_path, const char *result_fil
if (val[i].get("Temperature","").asString() == "nan" && SmartSymbol == "nan" ){
continue;
}

if (first_day){
if (afternoon){
fprintf(file_out," <period start=\"%li\" hour=\"true\"", utc_time + 3600*localtimezone - 3600*timezone);
Expand Down Expand Up @@ -954,7 +955,7 @@ parse_and_write_days_xml_data(const char *days_data_path, const char *result_fil
#if 0
/* Sun info */
val = root["suninfo"].get(root["observations"].getMemberNames()[0], nullval);
/* std::cerr<<val<<std::endl;*/
/* std::cerr<<val<<std::endl; */
time_t sunrise_time = 0;
time_t sunset_time = 0;
time_t day_begin = 0;
Expand Down Expand Up @@ -1163,7 +1164,7 @@ convert_station_fmi_fi_data(const char *days_data_path, const char *result_file,

/*******************************************************************************/
int
main(int argc, char *argv[]){
main_fmi_fi(int argc, char *argv[]){
int result = -1;
if (argc < 2) {
fprintf(stderr, "fmifi <input_days_file> <output_file> \n");
Expand Down

0 comments on commit 68c84f7

Please sign in to comment.