Changeset 915dc18 for src/webservice


Ignore:
Timestamp:
Sep 17, 2015, 9:11:21 PM (11 years ago)
Author:
Joachim Langenbach <joachim.langenbach@…>
Branches:
master
Children:
a2330fc
Parents:
e498070
Message:
  • Working c++ library webserviceclient class, which allows to register a station
    • Added tests for the webserviceclient class
    • Improved build system
    • Fixed some errors in Webservice Location.php and WebserviceApi.php
Location:
src/webservice
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/webservice/config/config.php.in

    re498070 r915dc18  
    2121$config = [
    2222        "mode" => "@WEBSERVICE_MODE@",
    23         "webserviceBaseUrl" => "http://@WEBSERVICE_SERVER_HOST@:@WEBSERVICE_SERVER_PORT@@WEBSERVICE_BASE_URL@",
     23        "webserviceBaseUrl" => "@WEBSERVICE_BASE_URL_COMPLETE@",
    2424        "spatialiteExtension" => "mod_spatialite.so",
    2525        "geonamesUsername" => "@WEBSERVICE_GEONAMES_USERNAME@",
  • src/webservice/htdocs/SiWeather/Webservice/Location.php

    re498070 r915dc18  
    5050                $this->setRegion($regionName, $regionCode);
    5151                $this->setCountry($countryName, $countryCode);
    52                 $this->setLocation($longitude, $latitude);
     52                $this->setLocation($latitude, $longitude);
    5353                $this->setTimezone($timeZone);
    5454        }
  • src/webservice/htdocs/SiWeather/Webservice/WebserviceApi.php

    re498070 r915dc18  
    203203                                }
    204204                                if(!$validatedLocation){
    205                                         $message  = "The city (". $json[city] .") and location (". $json["latitude"] .", ". $json["longitude"] .") you send, does not suite with locations we found at your given location (city, latitude, longitude):\n";
     205                                        $message  = "The city (". $json["city"] .") and location (". $json["latitude"] .", ". $json["longitude"] .") you send, does not suite with locations we found at your given location (city, latitude, longitude):\n";
    206206                                        foreach($locations as $location){
    207207                                                $message .= "    ". $location->city() .": ". $location->latitude() .", ". $location->longitude() ."\n";
Note: See TracChangeset for help on using the changeset viewer.