
回复
一This Application is Developed Using JavaScript for OpenHarmony.
[
{"food_name":"Food_Name", "food_percentage":"Food_Percentage_", "percent_color":"Percentage_Image_Path" }
]
usage-example:
[
{"food_name":"Vegetables", "food_percentage":"72%", "percent_color":"/common/images/green_range.png" },
{"food_name":"Fruits", "food_percentage":"50%", "percent_color":"/common/images/violet_range.png" },
{"food_name":"Meat", "food_percentage":"20%", "percent_color":"/common/images/orange_range.png"}
]
[
{"img_path":"Food_Item_Image_Path", "food_name":"Food_Item", "item_weight":"Food_Item_Weight"}
]
usage-example:
[
{"img_path":"/common/images/chicken.png", "food_name":"Fresh Chicken", "item_weight":"1kg"},
{"img_path":"/common/images/vegetables.png", "food_name":"Vegetables", "item_weight":"3kg"},
{"img_path":"/common/images/spinach.png", "food_name":"Spinach", "item_weight":"500g"},
{"img_path":"/common/images/fruits.png", "food_name":"Fruits", "item_weight":"3kg"},
{"img_path":"/common/images/fruits.png", "food_name":"Milk", "item_weight":"2lts"}
]
[
{"music_cover_image":"Music_Cover_Image_Path","music_name":"Music_Name","music_genre":"Music_Genre"}
]
usage-example:
[
{"music_cover_image":"/common/images/dreams_img.png","music_name":"Dream","music_genre":"Romantic"}
]
CONFIGURED WEATHER API - OPEN WEATHER MAP (openweathermap.org)
[
{"latitude":"current_latitude", "longitude":"current_your_longitude", "api_key":"insert_your_api_key"}
]
usage-example:
[
{"latitude":"28.4595", "longitude":"77.0266", "api_key":"insert_your_api_key"}
]
Supports OpenHarmony API version 8
|---- Smart_Refrigerator
| |---- entry
| |---- src/Main
| |---- js/MainAbility
| |---- i18n
| |---- food_remain.json
| |---- items.json
| |---- music_info.json
| |---- weather_api.json
| |---- README.MD # usage
If you find any problems during usage, you can submit an Issue to us. Of course, we also welcome you to send us PR.
Licensed under the APACHE LICENSE 2.0
文章转载自:https://gitee.com/openharmony-tpc/SmartRefrigerator