Enviro-Indoor Monitor のUTCからJSTに変更したい

初めまして。
私は日本人で英語が話せません。
日本語で失礼します。

先日、東京 秋葉原で Enviro-Indoor Monitor
を買いました。
とても小さくて便利で気に入りました!

しかし、weather-and-light.py 等の時間がイギリスの時間になってます。
UTC→JST に変えたいです。
コードの変更が必要でしょうか?
どこを直せば良いか教えてください。

Welcome to the forum. Posting the English translation of that will get you much better odds of help.

1 Like

ありがとうございます!
Thankyu so much !

From Google Translate:

Nice to meet you.
I am Japanese and can’t speak english.
Excuse me in Japanese.

Enviro-Indoor Monitor the other day in Akihabara, Tokyo
bought.
It’s so small and convenient, I like it!

However, the time of weather-and-light.py etc. is the time of England.
I want to change from UTC to JST.
Do you need to change your code?
Please tell me where to fix.

1 Like

I’m afraid I don’t speak Japanese so I’m going to have to rely on Google Translate here!

If you read the weather-and-light.py file there is a section starting on line 305 where you can set the city name and time zone:

# The city and timezone that you want to display.
city_name = "Sheffield"
time_zone = "Europe/London"

There is a list of valid cities here: Astral documentation

私は日本語が話せないので、こちらのGoogle翻訳に頼る必要があります。

プログラムファイルを読み取る場合、305行目から始まるセクションに都市名とタイムゾーンを設定できます

# The city and timezone that you want to display.
city_name = "Sheffield"
time_zone = "Europe/London"

ここに有効な都市のリストがあります: Astral documentation

1 Like

Nice to meet you.
Thank you for the translation.

From Google Translate

Good evening
Thank you for your reply.
I am very kind and sorry.

「weather-and-light.py」
# The city and timezone that you want to display.
city_name = "Sheffield"
time_zone = "Europe/London"

I wanted to change both “Sheffield” and “Europe/London” to “Tokyo”, but when I tried to rewrite it with LXTerminal, “I can’t because the disk is full or I don’t have permission to write.”

I don’t know the future, so please let me know.
Thank you.

You’re very welcome, and you don’t need to apologise!

If your microSD card isn’t full then you may not be listed as an owner of the program. Try running sudo chmod 775 weather-and-light.py in a terminal in the directory when the script is.

Or perhaps try creating a copy of the program and editing that.

どういたしまして、謝罪の必要はありません。

microSDカードがいっぱいでない場合は、プログラムの所有者としてリストされていない可能性があります。 スクリプトがある場合は、ディレクトリのターミナルで sudo chmod 775 weather-and-light.pyを実行してみてください。

または、プログラムのコピーを作成して編集してみてください。

Good evening!
Thank you for your advice this time.

I was stumped many times by copying the program, but I searched a lot and now I can safely display Japan time.

The next goal is to turn on the power and let the application start automatically and shut down without a PC.

Please try again and if you do not understand, please give me again.

Thank you so much!

From Google Translate

こんばんは!
この度はアドバイスありがとうございました。

プログラムのコピーで何度もつまずきましたが沢山、検索して、今は無事に日本時間を表示することができました。

次の目標は電源を入れて自動的にアプリケーションが起動してPC無しでシャットダウン出来るようにしたいです。

チャレンジしてみて解らなくなったらまたお願いします。

大変にお世話になりました!