Giter Site home page Giter Site logo

notquiteawake / smart-aircon Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 2.47 MB

A smart system for air conditioners, built on Arduino.

License: MIT License

C++ 2.76% CMake 1.96% Java 71.49% Python 23.78%
air-conditioning android-app arduino raspberry-pi-3

smart-aircon's People

Contributors

notquiteawake avatar

Watchers

 avatar

smart-aircon's Issues

Add energy saving strategies

The air conditioner doesn't have to be turned on an hour before. The efficiency which time calculation depends on should be calculated by this formula:
Time = Abs(TurnOnTemp - ExpectedTemp) / ConditioningTime

Poor Interface

Interface is not designed to be used in an intuitive and interactive manner. Require rearrangement of items.

API Rename

The APIs should be renamed in an object-oriented manner.
For example:

request_* / check_* / *_req -> get_*
modify_* -> set_*

connection leakage

Encountered the error:
W/OkHttpClient: A connection to (address) was leaked. Did you forget to close a response body?

hardware.py issue

when directly executed, hardware.py won't run properly because there are only four params (out of 8 required) at the line

run(init_state, nxt_time, expdt, tempRec)

Add "Relay mode"

It's obvious that the idea is more feasible that the device should be packaged and used as an independent relay between user & real air conditioner. Code should be implemented to address the identification and recording of IR signals; A physical model should also be designed.

EditExpActivity Crash Bug

When trying to modify the figures by clicking on a bar, the activity crashes because in line 109, index is always equal to -1, which results in an unexpected ArrayIndexOutOfBoundsException.

Window leakage leads to app crash

Logcat detail

com.ota.jimmychen.ota E/WindowManager: android.view.WindowLeaked: Activity com.ota.jimmychen.ota.MainActivity has leaked window DecorView@b7c1857[] that was originally added here
        at android.view.ViewRootImpl.<init>(ViewRootImpl.java:485)
        at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:346)
        at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:92)
        at android.app.Dialog.show(Dialog.java:330)
        at android.app.AlertDialog$Builder.show(AlertDialog.java:1114)
        at com.ota.jimmychen.ota.MainActivity$3.onClick(MainActivity.java:118)
        at android.view.View.performClick(View.java:6256)
        at android.view.View$PerformClick.run(View.java:24701)
        at android.os.Handler.handleCallback(Handler.java:789)
        at android.os.Handler.dispatchMessage(Handler.java:98)
        at android.os.Looper.loop(Looper.java:164)
        at android.app.ActivityThread.main(ActivityThread.java:6541)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)

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.