Code Monkey home page Code Monkey logo

hnstemp's Introduction

1.golang ウィンドウズ版をインストール

https://golang.org/dl/


2.goenv.bat を実行

 GOROOT に golang をインストールしたディレクトリを設定
 GOPATH に このでディレクトリを設定
 HTTP_PROXY, HTTPS_PROXY でプロキシ設定 
 
  goenv.bat の set GOROOT=, set GOPATH=, 
  set HTTP_PROXY= set HTTPS_PROXY= を書き換えて実行してください。
  
3.設定の修正

 温度の条件を変更する場合は、
 service.go の
  const (
    // 警告温度
    warningLimit  = 33.5
    // エラー温度
    emergeLimit   = 35.0
  )
 を修正します。
 
 メール情報を変更する場合は
 sendmail.go
 関数 sendMail の定数を書き換えます
  func sendMail(name string, title string, description string) error {
    from     := "daemon@foo dot com"
    to       := "tweet@foo dot com"
    user     := "smtp user@foo dot com"
    password := "your password"
    subject  := title
    server   := "foo dot com"
    port     := "587"
 

4.build.bat を実行

  HnsTemp.exe が生成されます。
  
5.インストール

  HnsTemp.exe と USBMeter.DLL をコピーして
  
  HnsTemp install を実行します。
  サービスとして登録されます。
  HnsTempサービスを開いて自動実行に変更します。
  
  HnsTemp remove でサービスから削除されます。
  


補足:

USBMeter.dll は、下記のキットです。
http://strawberry-linux.com/catalog/items?code=52001

hnstemp's People

Contributors

oki-miyuki 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.