Skip to content

Web application used as client for TFA WEATHERHUB meteostation

Notifications You must be signed in to change notification settings

JosefRypacek/WeatherHub-WebAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WeatherHub Web-API

Web application used as a client for TFA WEATHERHUB SmartHome System meteostation and communicating with Mobile Alerts Cloud. App is written in PHP (Nette framework) and MySQL. It allows to view charts of measured values. This app can be easily customized to support more types of sensors.

Main info

  • this "API" is built on "hacked" communication channel of mobile app
  • this app is acting like official mobile application, retireves values from cloud and stores data in MySQL database
  • to get it working you need to capture encrypted communication between mobile app and cloud
  • there was no other way few years ago...
  • the main code is placed in: nette/app/presenters/CronPresenter.php

Supported sensors

  • temperature, humidity, rain and wind

How to get working?

  • decrypting HTTPS communication is not required anymore, even phoneId is optional
  • setup android app WeatherHub
  • install Packet Capture with SSL certificate
  • start capture, reload WeatherHub data, save captured data
  • enter devicetoken, vendorid and phoneid (and device IDs) into this app
  • there may be a problem on newer devices with sniffing HTTPS communication

How did I get it working? (admin)

  • download current app in .apk format
  • use apktool do decompile
  • find file (./smali/com/synertronixx/mobilealerts1/RMGlobalData.smali) using: fgrep -ri 'md5' .
  • find salt and excluded characters before calling getMD5EncryptedString
  • modify app according to this information

Other ways for "API"

About

Web application used as client for TFA WEATHERHUB meteostation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published