
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
github.com/jaswanth-gorripati/weather-api-server
This is a simple HTTP server written in Go that uses the OpenWeather API to fetch weather data based on latitude and longitude coordinates. The server exposes an endpoint that returns the weather condition and categorizes the temperature as cold, moderate, or hot.
Clone the repository:
git clone https://github.com/jaswanth-gorripati/weather-api-server.git
cd weather-api-server
Install dependencies:
This project requires Go to be installed. You can download and install it from here.
Build the server:
go build -o weather-server
You can provide the OpenWeather API key either through a command-line argument or an environment variable.
```sh
./weather-server -apikey YOUR_API_KEY
```
```sh
export OPENWEATHER_API_KEY=YOUR_API_KEY
./weather-server
```
The server will start on port 8080 by default. You can change the port by setting the PORT
environment variable.
To fetch weather data, make a GET request to the /weather
endpoint with lat
and lon
query parameters:
```sh
curl --location 'http://localhost:8080/weather?lat=78.37&lon=10.99'
```
```json
{
"temperature": "4.17°C",
"temperature_condition": "Cold",
"weather_condition": "Clouds"
}
```
FAQs
Unknown package
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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.