Giter Club home page Giter Club logo

altherma-spoofer's Introduction

altherma-spoofer

A simple Java app that simulates a Daikin Heat Pump. Its purpose is to play around with ESPAltherma and D-checker.

It works in two different ways, based on theconfig parameter 'mqtt':

  • standalone (mqtt = false):
    • read register data from file 'work/data.txt'
    • you can modify this file (do not alter its structure!) and the app will reload it on the fly
  • mqtt (mqtt = true):
    • read register data subscribing to MQTT 'espaltherma/log'
    • you can modify the file 'work/spoof.txt' (do not alter its structure!) and the app will reload it on the fly
    • this file overwrites bytes received from MQTT where the file has a value != '--' (it's easier to do than to explain)

The app will calculate CRC on its own, so do not include CRC values in these files. The first line of both files is a header and it is not parsed, so don't modify it.

how to use

  • import this repo inside your IDE (I use eclipse)
  • create the config file 'src/main/resources/config.properties' (copy 'config.default.properties')
  • set the parameters with your values
  • build and launch (no command-line args required/supported)
  • eventually give firewall permission for inbound port 50000
  • wait for data, if using mqtt mode
  • launch D-checker
  • configure options (only the first time)
    • click 'Options'
    • select 'COM port' = 'TCP/IP(WiFi)'
    • set address to '127.0.0.1'
    • fill 'Service office' field with whatever
    • fill 'Responsible person' field with whatever
    • click 'OK'
  • click 'Recording'
  • add a customer (only the first time)
    • click 'Add new'
    • fill 'Customer id' field with whatever
    • fill 'Customer name' field with whatever
    • click 'Ok'
  • double click the customer row you want to use
  • click 'New'
  • ensure the checkbox 'With BTSC/Wi-Fi' is not ticked
  • click 'Altherma'
  • wait for detection to end
  • select an option for the field 'Data label file'
  • click 'Ok'
  • select the tab 'Op. All data'
  • now, you should see 6 tables of key-value pairs

At this point, you can modify the data/spoof file and you should see the changes reflected into D-checker GUI.

altherma-spoofer's People

Contributors

mmariotti avatar

Stargazers

 avatar Simone avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.