
Security News
Bun 1.2.19 Adds Isolated Installs for Better Monorepo Support
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.
hotspotty-payment-email
Advanced tools
A command line tool that takes as input a list of commission reports in csv format exported from the [Commission report](https://app.hotspotty.net/workspace/helium/commission-reports) section of Hotspotty platform and send a gmail e-mail to each user inside the input reports to inform them about the rewards they'll receive.
The goal of this project is about developing a command line tool that take as input a list of commission reports in csv format exported from the Commission report section of Hotspotty platform and send a gmail e-mail to each user inside the input reports to inform them about the rewards they'll receive.
After downloading the secret file, you should have a file in this format:
{
"installed": {
"client_id": "463225603869-un1ijjk75iguesbh4nhclm74edprhj5p.apps.googleusercontent.com",
"project_id": "geocaching-366015",
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
"token_uri": "https://oauth2.googleapis.com/token",
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
"client_secret": "TOCSXX-wXkVvnUSGrqC_OcH722jmnFPZHIE",
"redirect_uris": [
"http://localhost"
]
}
}
Export a one or more contact commissions as show below in the
Commission report section of Hotspotty:
See script help to get more details about how to use the script.
hotspotty-payment-email --help
Here below a concrete example which assumes that:
hotspotty-payment-email \
--draft True \
--subject "Hotspot report from 2023/04/01 to 2023/05/01" \
--start 2023-04-01 \
--end 2023-05-01 \
--template "mail_template.html" \
--credentials "credentials.json" \
--delimiter "," \
--report "commission-report-1.csv" --report "commission-report-2.csv"
Here below a sample template e-mail that you can use as a starting point to create your own template e-mail:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<p>
Hi {{name}},<br>
Below the tokens accrued by your hotspot in the following
period: {{start_date}} - {{end_date}}. Payments will be made to your wallet:
<a href="https://explorer.solana.com/address/{{wallet_address}}">{{wallet_address}}</a> and in total you will receive:
<ul>
{% if amount_hnt > 0 %}
<li>{{amount_hnt}} HNT.</li>
{% endif %}
{% if amount_iot > 0 %}
<li>{{amount_iot}} IOT.</li>
{% endif %}
</ul>
</p>
<p>
Thanks,<br>
Bye bye
</p>
</body>
</html>
FAQs
A command line tool that takes as input a list of commission reports in csv format exported from the [Commission report](https://app.hotspotty.net/workspace/helium/commission-reports) section of Hotspotty platform and send a gmail e-mail to each user inside the input reports to inform them about the rewards they'll receive.
We found that hotspotty-payment-email demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.
Security News
Popular npm packages like eslint-config-prettier were compromised after a phishing attack stole a maintainer’s token, spreading malicious updates.
Security News
/Research
A phishing attack targeted developers using a typosquatted npm domain (npnjs.com) to steal credentials via fake login pages - watch out for similar scams.