![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
google-home-module
Advanced tools
This module is for doing all the things the Google Home website can do!
This module includes everything of Google Home!
See the website at https://arnavthorat78.github.io/Google-Home/.
See the website at https://arnavthorat78.github.io/Google-Home/developer.html.
npm install google-home-module
It's that easy!
To then use it in your project, simple require
it.
const googleHome = require("google-home-module");
Popular only! We only have the popular variables, methods and classes. Sorry for any inconvenience caused by this.
To get the weather, you can use the getWeather
method, as described below. It returns a Promise
with the data. Please note that the data is by default parsed.
googleHome
.getWeather(
"metric", // units: string
"Melbourne", // city: string
"VIC", // stateCode?: string
"AUS" // countryCode?: string
)
.then((data) => {
console.log(`In ${data.name}, it is ${data.temp.toFixed(1)} degrees Celcius.`);
})
.catch((err) => {
console.log(err);
});
This outputs...
In Melbourne, it is 20.2 degrees Celcius.
With the weather data, we can change some values that are non-human readable, and also add some values. The changeWeatherData
method helps us with that.
googleHome
.getWeather("metric", "Melbourne", "VIC", "AUS")
.then((data) => {
console.log(
googleHome.changeWeatherData(
data.weather[0].icon, // icon: string
data.sys.sunrise, // sunrise: number
data.sys.sunset // sunset: number
)
);
})
.catch((err) => {
console.log(err);
});
This should output something like this, depending on your data.
{
"http://openweathermap.org/img/wn/03d@2x.png",
"day",
'readable-sunrise-date',
'readable-sunset-date'
}
Commands | Description |
---|---|
websiteVersion: string | Deprecated! Get the website version of the Google Home website. |
version: string | Deprecated! Get the version of the Google Home Module NPM module. |
keyboardShortcuts: { openHome: { definition: string, shortcut: string, ...more }, ...more } | Get all of the keyboard shortcuts and the information from the website! |
Commands | Description |
---|---|
randomGreeting: (signedIn: boolean, username?: string) => string | Get a random greeting for the user. |
getWeather: (units: string, city: string, stateCode?: string, countryCode?: string) => Promise<object> | Get the weather for your location chosen. |
changeWeatherData: (icon: string, sunrise: number, sunset: number) => { icon: string; dayNight: string; sunrise: string; sunset: string; } | Change the format of the weather data retrieved with the getWeather method. |
Commands | Description |
---|---|
BasicSearch(query: string, searchEngine?: string): BasicSearch | Make a new BasicSearch so the user can search with their desired search engine. |
URLSearch(url: string): URLSearch | Make a new URLSearch for a user to use. |
SmartSearch(command: string): SmartSearch | Make a new SmartSearch for a user to interact with. |
User(displayName: string, email: string, password: string, exists?: boolean, admin?: boolean, signedOut?: boolean): User | Make a new User for a user's account. |
FAQs
This module is for doing all the things the Google Home website can do!
The npm package google-home-module receives a total of 1 weekly downloads. As such, google-home-module popularity was classified as not popular.
We found that google-home-module demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.